|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.actions.Action
negotiator.actions.Offer
public class Offer
Class which symbolizes an offer of an agent for the opponent.
| Constructor Summary | |
|---|---|
Offer(Agent agent,
Bid bid)
Creates an action symbolizing an offer to the opponent. |
|
Offer(AgentID agentID,
Bid bid)
Creates an action symbolizing an offer for the opponent. |
|
Offer(Bid bid)
Creates an action symbolizing an offer for the opponent. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
Bid |
getBid()
Returns the bid offered by the agent which created this offer. |
int |
hashCode()
|
java.lang.String |
toString()
Enforces that actions implements a string-representation. |
| Methods inherited from class negotiator.actions.Action |
|---|
getAgent, getBidFromAction |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Offer(AgentID agentID,
Bid bid)
agentID - id of the agent which created the offer.bid - for the opponent.public Offer(Bid bid)
bid - for the opponent.
public Offer(Agent agent,
Bid bid)
agent - which created this offer.bid - to be offered to the opponent.| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - object to which this object is compared.
public Bid getBid()
public java.lang.String toString()
Action
toString in class Action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||